package com.gqb.concurrency;

import java.io.File;

/**
 * 
 * @author Administrator
 *
 */
public class InterruptedFileSearch implements Runnable{
	private String filename;
	private String path;
	
	public InterruptedFileSearch(String filename, String path) {
		super();
		this.filename = filename;
		this.path = path;
	}
	
	
	private void processDirectory(File file){
		File files[]=file.listFiles();
		for (File file2 : files) {
			if(file2.isDirectory()){
				processDirectory(file2);
			}else{
				
			}
		}
	}
	
	private void fileprocess(File file) throws InterruptedException{
		if(file.getName().equals("gqb.txt")){
			System.out.println();
		}
		if(Thread.interrupted()){
			throw new InterruptedException();
		}
	}
	public static void main(String[] args) {
		InterruptedFileSearch interruptedFileSearch=new InterruptedFileSearch("c:\\", "");
	}

	@Override
	public void run() {
		File file=new File(path);
		if(file.isDirectory()){
			
		}
	}
}
